package com.umerclass.ui.shop;

import android.view.View;
import android.widget.LinearLayout;

import com.umerclass.R;
import com.umerclass.frame.model.InfoResult;
import com.umerclass.frame.ui.fragment.BaseFragment;
import butterknife.BindView;

public class ShopFragment extends BaseFragment {

    @BindView(R.id.view)
    View view;

    @Override
    public boolean isImmersionBarEnabled() {
        return false;
    }

    @Override
    public int getLayoutResId() {
        return R.layout.fragment_shop;
    }

    @Override
    public void init() {
        settStateBar();
    }

    @Override
    public void loadData() {

    }

    @Override
    protected void onSuccess(int what, InfoResult t) {

    }

    @Override
    protected void onFail(int what, InfoResult t) {

    }

    private void settStateBar() {
        int result = 0;
        int resourceId = this.getResources().getIdentifier("status_bar_height", "dimen", "android");
        if (resourceId > 0) {
            result = this.getResources().getDimensionPixelSize(resourceId);
            showToast("gaodu" + result);
            LinearLayout.LayoutParams linearParams = (LinearLayout.LayoutParams) view.getLayoutParams();
            linearParams.height = result;
            view.setLayoutParams(linearParams);
        } else {

        }
    }
}
